package com.zfzs.post.modules.finance.rest;

import com.zfzs.post.aop.log.Log;
import com.zfzs.post.common.bean.ResponseResult;
import com.zfzs.post.modules.agent.service.dto.WithdrawOrderQueryCriteria;
import com.zfzs.post.modules.finance.service.WithdrawOrderWebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author wq
 * @date 2019/12/6 16:25
 * @description
 */
@RestController
@RequestMapping("withdraw_order")
public class WithdrawOrderWebController {


    @Autowired
    private WithdrawOrderWebService withdrawOrderWebService;

    @RequestMapping("list")
    @Log("提现分页查询")
    public ResponseResult getPage(WithdrawOrderQueryCriteria criteria, Integer page, Integer size){
        Map<String, Object> map = withdrawOrderWebService.findOrderPage(criteria, page, size);
        return ResponseResult.ok(map);
    }

}
